package li;

public class demo6 {
	public static void main(String srgs[]){
		N c=new N();
		c.methodl();
		System.out.println(c.a1+","+c.a2+","+c.geta3()+","+c.b1+","+c.c1);
		
	}
	
	
}

class A{
	int a1=2;
	public int a2=4;
	public int a3=6;
	int geta3(){
		return a3;
		
	}
	void seta3(int i){
		a3=i;
		
	}
	

}
class M extends A{
	int b1=3;
	
	
}
class N extends M{
	int c1=7;
	void methodl(){
		a1++;
		a2++;
		seta3(geta3()+1);
		b1++;
		c1++;
		
	}
}